﻿using LibNiconico.NiconicoApi.Extentions;
using LibNiconico.NiconicoApi.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LibNiconico.NiconicoApi.Lives.Broadcast
{
    internal class NicoLiveBroadcastStartQueryInfo:NicoUrlAble
    {
        internal NicoLiveBroadcastStartQueryInfo(string liveId,string token)
        {
            this.LiveId = liveId;
            this.Token = token;
        }

        internal string LiveId { get; private set; }

        internal string Token { get; private set; }

        internal override string AsPath()
        {
            return "api/configurestream/" + this.LiveId;
        }

        internal override string AsQuery()
        {
            var queryStrings = new QueryStrings();
            queryStrings.Add("key", "exclude");
            queryStrings.Add("value", "0");
            queryStrings.Add("token", this.Token);

            return queryStrings.ToString();
        }
    }
}
